home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-02 / pas_0493.zip / ABSOLUTE.FYI < prev    next >
Text File  |  1993-04-19  |  1KB  |  33 lines

  1. ─ Fido Pascal Conference ────────────────────────────────────────────── PASCAL ─
  2. Msg  : 575 of 591                                                               
  3. From : Sean Palmer                         1:104/123.0          17 Apr 93  22:21 
  4. To   : All                                                                       
  5. Subj : String FYI, Tp 5.5+?                                                   
  6. ────────────────────────────────────────────────────────────────────────────────
  7. Just so you guys know, if your compiler can handle ABSOLUTE variables, it's
  8. really pretty efficient to do this:
  9.  
  10. var
  11.  str: string[31];
  12.  len: byte absolute str;
  13.  
  14. then instead of using "length(str)" you just use "len"
  15.  
  16. Neat? changing the string's length is alot easier too.
  17.  
  18. like...
  19.  
  20.  inc(len); str[len]:=' '; {add a space to end}
  21.  len:=0;   {make null string}
  22.  
  23.  _
  24. / _
  25. \_/host
  26.  
  27. ... I know for sure that I am always wrong
  28. ___ Blue Wave/QWK v2.12
  29.  
  30. --- Maximus 2.01wb
  31.  * Origin: >>> Sun Mountain BBS <<< (303)-665-6922 (1:104/123)
  32.  
  33.